package eCheque;

/**
 * Interface for receiving the send results of a peer-to-peer cheque transfer
 * 
 * @author Steve Pennington
 *
 */
public interface SendChequeHandler {
	/**
	 * Called when the cheque data was successfully transferred.
	 * Note that this does not necessarily mean that the receiver actually
	 * received the cheque. If there is an error on the receiver's side
	 * the cheque may not be delivered. 
	 */
	public void chequeSent();
	
	/**
	 * Called if there was an error while sending the cheque
	 * 
	 * @param t
	 * 		Cause of the failure
	 */
	public void chequeSendFailed(Throwable t);
}
